<?php

/**
 * Description of base
 *
 * @author zhangyazhong By 2013-5-22 11:51:34
 * 
 * Info：
 */
class api_base {

    protected static function curl($url, $param, $header = array(), $method = 'POST') {
        $curl = new framework_base_curl();
        $curl->url = $url;
        $curl->method = $method;
        $curl->params = $param;
        $curl->headers = $header;
        $curl->exec();
        $rs_curl = $curl->result;
        return framework_static_common::str_empty($rs_curl) ? FALSE : json_decode($rs_curl, TRUE);
    }

    /**
     * 生成统一订单号码 22位
     * @return type
     */
    protected static function getOrderId() {
        return ctrl_base::getOrderId();
    }

}